import {fetch_get, fetch_post} from '../_utils/request'
import { baseUrl } from '../../config/index'

// 获取文章全部信息
export async function submit(data){
  return fetch_get({
    url:baseUrl+"exam/submit",
    data:{
      articleId:data.id
    }
  })
}


// 获取文章全部信息
export async function queryExamAll(data){
  return fetch_get({
    url:baseUrl+"exam/list",
  })
}

export async function queryExamIds(data){
  return fetch_get({
    url:baseUrl+"exam/ids",
  })
}
// 删除考试成绩
export async function deleteExam(data){
  return fetch_post({
    url:baseUrl+"exam/delete",
    method:"PUT",
    data:[data.id]
  })
}